/* rcbr003.p - Shop Calendar Holidays Browse UI                             */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                      */
/* All rights reserved worldwide.  This is an unpublished work.             */
/* $Revision: 1.10 $    */
/*V8:ConvertMode=NoConvert                                                  */
/********************************** History *********************************
 *    Revision: 8.5      Created: 06/19/97    By: B. Pedersen    *J1TF*
 *    Revision: 8.5     Modified: 09/26/97    By: B. Pedersen    *J20C*
 *    Revision: 8.5     Modified: 01/31/99    By: Doug Norton    *M071*
 *    Revision: 9.0     Modified: 03/15/99    By: Mark Smith     *M0BF*
 *    Revision: 9.1     Modified: 08/15/00    By: Mark Brown     *N0KP*
 *    Revision: 1.9   BY: Jean Miller       DATE: 04/05/02  ECO: *P044*
 *   $Revision: 1.10 $     BY: Rajiv Ramaiah     DATE: 07/03/02  ECO: *N1N0*
 ****************************************************************************/

{mfdeclre.i}

&SCOPED-DEFINE BR-TITLE "Shop Calendar Holidays"

&SCOPED-DEFINE BR-NAME rc003
&SCOPED-DEFINE Q-DRAG-BACK-COL 1

&SCOPED-DEFINE Q-FIRST-TABLE shop_cal
&SCOPED-DEFINE Q-2ND-TABLE hd_mstr
&SCOPED-DEFINE Q-2ND-JOIN hd_site = shop_site
&SCOPED-DEFINE Q-NUM-TABLES 2

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-1 b-1.shop_site
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-1 shop_cal.shop_site
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-1 tt-shop_site
&SCOPED-DEFINE BR-K-COL-LABEL-1 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-1 "Site"
&SCOPED-DEFINE BR-FIELD-TYPE-1 character
&SCOPED-DEFINE BR-FIELD-FRMT-1 FORMAT "x(8)"
&SCOPED-DEFINE BR-FIELD-WIDTH-1 9

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-2 b-2.hd_date
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-2 hd_mstr.hd_date
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-2 tt-hd_date
&SCOPED-DEFINE BR-K-COL-LABEL-2 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-2 "Date"
&SCOPED-DEFINE BR-FIELD-TYPE-2 date
&SCOPED-DEFINE BR-FIELD-FRMT-2 FORMAT "99/99/99"
&SCOPED-DEFINE BR-FIELD-WIDTH-2 9

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-3 b-2.hd_desc
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-3 hd_mstr.hd_desc
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-3 tt-hd_desc
&SCOPED-DEFINE BR-K-COL-LABEL-3 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-3 "Holiday"
&SCOPED-DEFINE BR-FIELD-TYPE-3 character
&SCOPED-DEFINE BR-FIELD-FRMT-3 FORMAT "x(24)"
&SCOPED-DEFINE BR-FIELD-WIDTH-3 25

&SCOPED-DEFINE Q-BROWSE-DISP-EXPR-4 getTermLabel(string("DAYNAME_" + string(weekday(hd_date))),12)
&SCOPED-DEFINE Q-BROWSE-DEF-EXPR-4 local-4
&SCOPED-DEFINE TT-Q-BROWSE-DEF-EXPR-4 tt-local-4
&SCOPED-DEFINE BR-K-COL-LABEL-4 COLUMN-LABEL
&SCOPED-DEFINE BR-COLUMN-LABEL-4 "Weekday"
&SCOPED-DEFINE BR-FIELD-TYPE-4 character
&SCOPED-DEFINE BR-FIELD-FRMT-4 FORMAT "X(12)"
&SCOPED-DEFINE BR-FIELD-WIDTH-4 13

&SCOPED-DEFINE BR-LOCAL-VAR-4 define variable local-4 as character format "X(12)" no-undo.
&SCOPED-DEFINE Q-NUM-FILT-VALS 4
&SCOPED-DEFINE BR-MAX-FIELD-WIDTH 25
&SCOPED-DEFINE BR-BROWSE-WIDTH 56
&SCOPED-DEFINE WHERE-CLAUSE
&SCOPED-DEFINE BR-INDEXED-FIELDS 1

{wbbr01.i}
if c-application-mode <> 'WEB' then do:
   {browse.i}
end.
